import React, { Component } from 'react'
import PropTypes from 'prop-types';
export default class NavBar extends Component {
  static propTypes = {
    title: PropTypes.string,
    leftshow: PropTypes.bool
  }
  static defaultProps = {
    leftshow: true
  }
  render() {
    let { title, leftshow } = this.props
    return (
      <div>
        {leftshow && <button>返回</button>}
        navbar--{title}
        <button>返回</button>
      </div>
    )
  }
}

